package com.blb.common.entity;

/**
 * @author lvtian
 * @date 2022/12/26 17:19
 */
public class User {
    private long id;
    private String username;
    private String password;
    private String nickname;//真实姓名
    private String cellphone;
    private int type;//0为用户 1为管理员

    public User(int id, String username, String password, String nickname, String cellphone, int type) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.nickname = nickname;
        this.cellphone = cellphone;
        this.type = type;
    }

    public User() {
    }

    public long getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getCellphone() {
        return cellphone;
    }

    public void setCellphone(String cellphone) {
        this.cellphone = cellphone;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
}
